const Router = require('koa-router')
const { register, login } = require('./controller/login')

// 路由前缀- /users/路由名
// const router = new Router({ prefix: '/users' })
const router = new Router()

// POST /users/
// 注册接口
router.post('/register', register);

// 登录接口
router.post('/login', login);

module.exports = router